package net.topikachu.dynamic.screen.widget;

import java.util.HashMap;
import java.util.Map;

public abstract class AbstractWidget implements Widget {

	final protected Widget child;
	final protected Map<String, String> variables = new HashMap<String, String>();

	public AbstractWidget(Widget child) {
		this.child = child;
	}

	final public Widget getChild() {
		return child;
	}

	public Map<String, String> getVariables() {
		return variables;
	}

	public void addVariable(String key, String value) {
		variables.put(key, value);
	}

}
